<?php 
    require_once('inc/conn.php');
    $sql="SELECT * FROM admin WHERE id='".$_GET['id']."'";
    $result=mysql_query($sql);
    $row=mysql_fetch_array($result);
 ?>
 <!doctype html>
 <html lang="en">
 <head>
     <meta charset="UTF-8">
     <title>Document</title>
 </head>
 <body>
     <form method="post" name="form" action="admin_modify_pass.php?id=<?php echo $row['id']?>">
         <table border="1" cellspacing="0" cellpadding="0">
             <tr>
                 <td colspan="5">修改管理员</td>
             </tr>
             <tr>
                 <td>账号</td><td><input type="text" value="<?php echo $row['user']?>"></td><td>密码</td><td><input type="password" name="pass" id="pass"></td><td><input type="submit" value="修改"></td>
             </tr>
         </table>
     </form>
 </body>
 </html>